<template>
  <div>
    <div class="btnbox">
      <div class="backbtn" @click="backlink()">
        <van-icon name="arrow-left" class="svgicon" />
      </div>
      <div class="backbtn">
        <icon-svg
          icon-class="share"
          icon-color="#FFFFFF"
          class="shareicon"
        ></icon-svg>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    backlink() {
      this.$router.back();
    },
  },
};
</script>

<style scoped>
.btnbox {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2; /* 将 z-index 调整为 2，确保在上面一层 */
  position: relative; /* 添加 position: relative，以便子元素使用 z-index */
}
.backbtn {
  width: 28px;
  height: 28px;
  background-color: #837e7d57;
  padding: 5px;
  margin-left: 10px;
  display: flex;
  align-content: center;
  justify-content: center;
  border-radius: 50%;
}
.svgicon {
  color: rgb(255, 255, 255);
  font-size: 30px;
}
.shareicon {
  height: 30px;
  width: 30px;
}
</style>